package com.blog.util;

import java.util.Random;

/**
 * @author cgx
 * @Date 2021/8/18 11:30
 *
 * 验证码工具类
 */
public class VerifyCodeUtil {

    /**
     * 生成四位数的纯数字验证码
     * @param
     * @return
     */
    public static Integer getRegisterCode(){
        return new Random().nextInt(9000) + 1000;
    }

    public static void main(String[] args) {
        System.out.println(getRegisterCode());
    }
}
